package com.caishi.lkx.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzw.common.entity.BaseService;
import com.caishi.lkx.user.model.MaterialInfoModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
 * @author by liyihua
 * @date : 2022-01-06 14:29
 */
public interface IMaterialInfoService extends BaseService<MaterialInfoModel, String> {
    /**
     * 获取用户点赞
     * @param page 分页
     * @param userId 用户id
     * @return
     */
    IPage<MaterialInfoModel> myLikePage(IPage page, String userId);

    /**
     * 根据栏目id获取资料
     * @param page 分页
     * @param param 参数
     * @return
     */
    IPage<MaterialInfoModel> materialInfoByColumnIdPage(Page<MaterialInfoModel> page, Map<String,Object> param);

}
